<%-- 
    Document   : home
    Created on : Mar 20, 2012, 1:58:42 PM
    Author     : berto
--%>

<%@page import="it.unitn.science.matr155863_148346_145963.bccastestore.items.User"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Public menu</title>
    </head>
    <body>
        <h2>Private area:</h2>
        <%
        Integer idUser=((User)session.getAttribute("user")).getId();
        %>
	  <ul>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/userDetails?id="+idUser)%>" title="Your details"><h3>Your account</h3></a></li>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/addProduct.jsp")%>" title="Add product"><h3>Add product</h3></a></li>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/addAsta.jsp")%>" title="Add asta"><h3>Add asta</h3></a></li>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/showAste?action=won&id="+idUser)%>" title="Show aste won"><h3>Show aste won</h3></a></li>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/showAste?action=lost&id="+idUser)%>" title="Show aste lost"><h3>Show aste lost</h3></a></li>
                <li><a href="<%=response.encodeURL(request.getContextPath()+"/contents/user/showOffers?user_id="+idUser)%>" title="Show offer"><h3>Show offer</h3></a></li>
	</ul>
    </body>
</html>
